baresip: add uci config section for accounts 892/head
authorDaniel Danzberger <[email protected]>
Fri, 17 Jan 2025 00:14:41 +0000 (01:14 +0100)
committerDaniel Danzberger <[email protected]>
Tue, 6 May 2025 15:22:13 +0000 (17:22 +0200)
commit70d6a028ab7ba209c232987c2126291e0903c242
tree869bde2791d9f23855e57d28e1a61b2e40eac103
parentc8a8d621f95ab8be74a1a512c1ce25c50c84e94b
baresip: add uci config section for accounts

Adds a new UCI config section that allows the user to define accounts
from which the init script will create the /etc/baresip/accounts file.

Using UCI has the big benefit, that changes in the config can be
recognized by reload_config which will restart baresip automatically.

Example /etc/config/baresip:
--
config baresip main
option enable 1
option options ''

config account
option user '+49123456789'
option password ''
option server 'tel.t-online.de'
option transport 'tls'
option mediaenc 'srtp'

config account
option user '12'
option password '7282ce22eee6d91193a1d5014398356x'
option server '172.27.0.97'
option transport 'udp'
option append 'answerdelay=0;rwait=90;mwi=no'
option ignore 1
--

The basic account options user,password,server,mediaenc and tansport can
be set directly. All other custom baresip account options can be append
to the account string using the 'append' option.

Signed-off-by: Daniel Danzberger <[email protected]>
net/baresip/Makefile
net/baresip/files/baresip.defaults
net/baresip/files/baresip.init